<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>随机点名</title>
	</head>
	<body>
		<h1>随机点名</h1>
		<p id="number" ></p>
		<br>
		<br>
		<br>
		<br>
		<input type="button" onclick="dianming" value="点名"  />
		<script>
			function ok(){
			var arr=new Array('1 小气','2 下','3 起');
			var n=Math.random()*3+1;
			var num=parseInt(n);
			number.innerHTML=arr[num];
		}
		</script>
	</body>
</html>
